Move cpu hotplug routines into common cpu.c file.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 14 May 2010 16:07:52 +0000 (17:07 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 14 May 2010 16:07:52 +0000 (17:07 +0100)
commit27c31d386746bea3daa5b3733c9f986a9c3cccc3
tree64ef675ed9b4c0836ab9076b7280e88a64f5bb16
parent2e4146ddc277d2ddd861646b8b1ba83182eb84bb
Move cpu hotplug routines into common cpu.c file.

Also simplify the locking (reverting to use if spin_trylock, as
returning EBUSY/EAGAIN seems unavoidable after all). In particular
this should continue to ensure that stop_machine_run() does not have
cpu_online_map change under its feet.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
12 files changed:
xen/arch/ia64/xen/xensetup.c
xen/arch/x86/acpi/power.c
xen/arch/x86/platform_hypercall.c
xen/arch/x86/setup.c
xen/arch/x86/smpboot.c
xen/arch/x86/sysctl.c
xen/common/cpu.c
xen/common/spinlock.c
xen/common/stop_machine.c
xen/include/asm-x86/smp.h
xen/include/xen/cpu.h
xen/include/xen/spinlock.h